# -*- ecoding: utf-8 -*-
# @Author: Wick
# @Time: 2024-02-24 3:09

mylist = [2, 4, 3, 4, 5, 4, 6, 4, 4, 4]

list_len = len(mylist)
counter = 0

for i in range(list_len):
    j = i + 1
    for j in range(list_len):
        if mylist[i] == mylist[j]:
            counter += 1
    if counter > list_len // 2:
        print(mylist[i])
        break
    else:
        counter = 0
